'''
1、有一字符串，把其中的所有单词的首字母变成大写，其它字母变小写。
'''

s = 'THe wEather is reaLly nice today, very suitAble for an ouTing.'

arr = s.split()

for i in range(0, len(arr)):
    arr[i] = arr[i].capitalize()
s1 = ' '.join(arr)
print("修改后的字符串为：")
print(s1)